<?php
if (count($nids)) :
  global $language;
  $nodes = node_load_multiple($nids);
  ?>
  <h3><?php print t('Newest Jobs'); ?></h3>
  <table class="newest-job">
    <tr class="heading">
      <td><?php print t('Job name'); ?></td>
      <td><?php print t('Salary'); ?></td>
      <td><?php print t('Date posted'); ?></td>
    </tr>
    <?php
    foreach ($nodes as $node) :
      $field_salary = field_get_items('node', $node, 'field_salary', $language->language);
      ?>
      <tr>
        <td><?php print $node->title; ?></td>
        <td><?php print $field_salary[0]['value']; ?></td>
        <td><?php print format_date($node->created, 'short'); ?></td>
      </tr>  
    <?php endforeach; ?>
  </table>
<?php endif; ?>
